.printer-list-container {
  padding: 20px;
  max-width: 100%;
  margin: 0 auto;
  min-height: 100vh;
  position: relative;
  overflow: hidden;
}

/* 添加背景图片及高斯模糊效果 */
.printer-list-container::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('https://k.sinaimg.cn/n/sinakd20116/214/w2048h1366/20221104/af07-e6609440d705650f2c294447c6e87a53.jpg/w700d1q75cms.jpg');
  background-size: cover;
  background-position: center;
  filter: blur(10px);
  z-index: -1;
  opacity: 0.7;
}

.printer-list-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  background-color: rgba(255, 255, 255, 0.7);
  padding: 15px 20px;
  border-radius: 8px;
  backdrop-filter: blur(5px);
}

.printer-list-header h1 {
  margin: 0;
  font-size: 24px;
  color: #333;
  font-weight: 500;
}

.printer-list-actions {
  display: flex;
  gap: 12px;
}

.btn {
  padding: 8px 16px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  transition: all 0.2s;
  z-index: 1;
}

.btn i {
  font-size: 16px;
}

.btn-primary {
  background-color: #1890ff;
  color: white;
}

.btn-primary:hover {
  background-color: #40a9ff;
}

.btn-secondary {
  background-color: #f0f0f0;
  color: #333;
}

.btn-secondary:hover {
  background-color: #d9d9d9;
}

.btn-icon {
  padding: 6px;
  background: none;
  color: #666;
}

.btn-icon:hover {
  color: #1890ff;
  background-color: #f0f0f0;
}

.btn-danger {
  color: #ff4d4f;
}

.btn-danger:hover {
  color: #fff;
  background-color: #ff4d4f;
}

.btn-info {
  background-color: #52c41a;
  color: white;
}

.btn-info:hover {
  background-color: #73d13d;
}

.statistics-panel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
  background: rgba(255, 255, 255, 0.8);
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  backdrop-filter: blur(5px);
}

.stat-item {
  text-align: center;
  padding: 16px;
  background: rgba(250, 250, 250, 0.6);
  border-radius: 4px;
  transition: transform 0.2s;
}

.stat-item:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.9);
}

.stat-value {
  font-size: 24px;
  font-weight: bold;
  color: #1890ff;
  margin-bottom: 8px;
}

.stat-label {
  color: #666;
  font-size: 14px;
}

.printer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  width: 100%;
}

.printer-card {
  background: rgba(255, 255, 255, 0.85);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
  backdrop-filter: blur(5px);
}

.printer-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.printer-card-header {
  padding: 16px;
  background: rgba(250, 250, 250, 0.6);
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.printer-card-header h3 {
  margin: 0;
  font-size: 16px;
  color: #333;
}

.printer-actions {
  display: flex;
  gap: 8px;
  cursor: default;
}

.printer-info {
  padding: 16px;
  border-bottom: 1px solid #f0f0f0;
}

.info-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.info-item:last-child {
  margin-bottom: 0;
}

.info-item .label {
  color: #666;
}

.info-item .value {
  color: #333;
  font-weight: 500;
}

.status {
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 12px;
}

.status.online {
  background-color: #f6ffed;
  color: #52c41a;
}

.status.offline {
  background-color: #fff1f0;
  color: #ff4d4f;
}

.printer-stats {
  padding: 16px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  background: rgba(250, 250, 250, 0.6);
}

.printer-stats .stat {
  text-align: center;
}

.printer-stats .label {
  display: block;
  font-size: 12px;
  color: #666;
  margin-bottom: 4px;
}

.printer-stats .value {
  font-size: 16px;
  font-weight: bold;
  color: #333;
}

.error-message {
  background-color: rgba(255, 241, 240, 0.9);
  border: 1px solid #ffccc7;
  color: #ff4d4f;
  padding: 12px;
  border-radius: 4px;
  margin-bottom: 16px;
  backdrop-filter: blur(5px);
}

.loading-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 300px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 8px;
  backdrop-filter: blur(5px);
}

.loading-spinner {
  border: 3px solid #f3f3f3;
  border-top: 3px solid #1890ff;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  animation: spin 1s linear infinite;
  margin-bottom: 16px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.loading-text {
  color: #666;
  font-size: 14px;
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 200px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 8px;
  padding: 30px;
  text-align: center;
  margin-top: 20px;
  backdrop-filter: blur(5px);
}

.empty-state p {
  color: #666;
  margin-bottom: 20px;
}

@media (max-width: 768px) {
  .printer-list-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  
  .printer-list-actions {
    width: 100%;
  }
  
  .printer-grid {
    grid-template-columns: 1fr;
  }
}
